﻿CREATE TABLE [dbo].[Driver](
	[DriverId] [int] IDENTITY(1,1) NOT NULL,
	[UserName] [nvarchar](20) NULL,
	[FirstName] [nchar](10) NULL,
	[LastName] [nchar](10) NULL,
	[Address] [nvarchar](255) NULL,
	[AuthorityNumber] [nvarchar](50) NULL,
	[AuthorityExpiryDate] [datetime] NULL,
	[PhoneNumber] [nchar](10) NULL,
	[IMEI] [nvarchar](50) NULL,
	[IsActive] [bit] NULL,
	[LastKnownLatitude] [decimal](9, 6) NULL,
	[LastKnownLongitude] [decimal](9, 6) NULL,
	[CarId] [int] NULL,
	[DriverStatus][nchar](10) Null,
	[Password] [nvarchar](50) NOT NULL,
	[JobWaitCount] int null,
	[ActivatedDateTime] datetime null
 CONSTRAINT [PK_Driver] PRIMARY KEY CLUSTERED 
(
	[DriverId] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]




